const filters = {

    res_filter(code) {

        let tips = null;

        switch (code) {
            case 'not-log-in': 
                tips: '未登录';
                break;
            case 'user exit':
                tips: '用户已存在';
                break;
            default: 
                tips: '未知错误';
                break;
        }

        return tips;
    }
}

export default filters;